%table#app-topo-table
  %thead
    %tr
      %th.thsort{:scope => "col", :width => "10%"}=t('apps.topo.index')
      %th.thsort{:scope => "col", :width => "30%"}=t('apps.topo.ip')
      %th.thsort{:scope => "col", :width => "10%"}=t('apps.topo.state')
      %th.thsort{:scope => "col", :width => "50%"}=t('apps.topo.time')
  %tbody
    - @app_topo[:instances].each do |id,app_topo_item|
      %tr.oddeven{:id => "app-" + @name + "-topo-" + app_topo_item[:id].to_s}
        %td= app_topo_item[:id]
        %td= app_topo_item[:ip]
        %td.tdcenter= colorize_state(app_topo_item[:state]).html_safe
        - if app_topo_item[:state] =="RUNNING"
          %td= topo_time(app_topo_item[:since])
        - else
          %td -
